package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*  卡的订单的实体类
**/
@Data
public class CardOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    //ID
    private Integer id;
    //卡id
    private Integer cardId;
    //卡名字
    private String cardName;
    //用户id
    private Integer userId;
    //订单价格
    private Double price;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    //状态
    private String status;

}